<h1>Url-uri site <?php echo $site->getName() ?></h1>

<form action="<?php echo url_for('site/urls?site_id='.$site->getId()) ?>" method="post">
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php echo $form->renderHiddenFields(false) ?>
          <input type="submit" name="next" value="Save" />
          <br />
          &nbsp;<a href="<?php echo url_for('site/index') ?>">Back to list</a>
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
       <tr>
        <th><?php echo $form['city_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['city_id']->renderError() ?>
          <?php echo $form['city_id'] ?>
        </td>
      </tr>
       <tr>
        <th><?php echo $form['url']->renderLabel() ?></th>
        <td>
          <?php echo $form['url']->renderError() ?>
          <?php echo $form['url'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>

<br />
<?php foreach($site_urls as $site_url): ?>
  <?php echo $site_url->getCity() ?> - 
  <?php echo $site_url->getUrl() ?>
  <a href="<?php echo url_for('site/deleteUrl?id='.$site_url->getId()) ?>">Sterge</a>
  <br />
<?php endforeach; ?>